from django.db import models

class BurglaryProofDoor(models.Model):
    photo = models.URLField(max_length=256, blank=True)
    purpose_photo_one = models.URLField(max_length=256, blank=True)
    purpose_phone_two = models.URLField(max_length=256, blank=True)
    purpose_phone_three = models.URLField(max_length=256, blank=True)
    usage = models.TextField(blank=True)
    stock = models.IntegerField(default=0, verbose_name="库存")
    price = models.IntegerField(default=0, verbose_name="价格")
    title = models.CharField(max_length=100, blank=True)
    size = models.CharField(max_length=100, blank=True)

    def __str__(self):
        return self.title
